import request from '@/utils/request'

// 查询银行卡列表
export function listBank(query) {
  return request({
    url: '/ums/system/appuserbank/list',
    method: 'get',
    params: query
  })
}

// 新增银行卡
export function addBank(data) {
  return request({
    url: '/ums/system/appuserbank/add',
    method: 'post',
    data: data
  })
}

// 修改银行卡
export function updateBank(data) {
  return request({
    url: '/ums/system/appuserbank/update',
    method: 'post',
    data: data
  })
}

// 删除银行卡
export function delBank(query) {
  return request({
    url: '/ums/system/appuserbank/delById',
    method: 'post',
    params: query
  })
}

// 查询银行网点列表
export function listBankinfo(query) {
  return request({
    url: '/third/app/bankinfo/list',
    method: 'get',
    params: query
  })
}


